package globox_db_server;

import java.rmi.RemoteException;

public interface TheaterManager extends BoxOffice {

	/**
	 * add a new theater to the db.
	 * 
	 * @param name
	 *            Name of the theater
	 * @param noRow
	 * @param noColumn
	 * @throws RemoteException
	 */
	public void addTheater(String name, int noRow, int noColumn)
			throws RemoteException;

	/**
	 * remove a theater with that name from the db.
	 * 
	 * @param name
	 * @return
	 * @throws RemoteException
	 */
	public boolean removeTheater(String name) throws RemoteException;

	/**
	 * Change the timeout to drop a transaction
	 * 
	 * @param nto
	 *            New timeout
	 * @throws RemoteException
	 */
	public void changeTimeOut(int nto) throws RemoteException;

	/**
	 * Saves the database to disk
	 * 
	 * @param path
	 * @throws RemoteException
	 */
	public void save(String path) throws RemoteException;
}
